<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../css/public.css">
<title>Insert title here</title>
</head>
<body>
<div id="maincontent">
<div id="headGray">
<%
try
{
    String managerId = (String) session.getAttribute("managerId");
    if(managerId == null)
    	out.println("<script>alert('没有登录,请返回登录界面进行登录！');window.location='../managerLogin.html';</script>");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
	Connection con = java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/classfee", "root", "1234");
	Statement stmt = con.createStatement();
	ResultSet rst = stmt.executeQuery("SELECT * FROM  tb_manager where (managerId='"+managerId+"')");
	while(rst.next())
	{
		%> <%
		       String classId = rst.getString("classId"); 
			   String managerName = rst.getString("managerName");
		       //System.out.println(classId);
		       session.setAttribute("classId",classId);
		       session.setAttribute("managerName",managerName);
		   %>
		<ul class="nopoint"><li><img src="../image/head.png" style="width:30px;height:30px"/><a id="maname" href="managerupdate1.jsp" style="color:white;text-decoration: none;"><% out.println(rst.getString("managerName"));%></a><a href="../managerlogout.jsp" style="margin-left:89%;color:white">退出登录</a></li></ul>
		</div>
		<div id="classDiv" title="班级管理">
		<ul class="nopoint">
		<li>
		<a class="se" href="../tb_class/classserch.jsp">Class</a>
		</li>
		<li>
		<a class="se1" href="../tb_class/classadd1.jsp">添加班级信息</a>
		<a class="se1" href="../tb_class/classupdate1.jsp" style="margin-left:100px">修改班级信息</a>
		</li>
		</ul>
		</div>
		<div id="feeDiv" title="班费管理">
		<ul class="nopoint">
		<li>
		<a class="se" style="margin-left:70px;" href="../tb_classfee/classfeeserch.jsp">Fee</a>
		</li>
		<li>
		<a class="se1" href="../tb_classfee/classfeeadd1.jsp">添加班费信息</a>
		<a class="se1" href="../tb_classfee/classfeeup.jsp" style="margin-left:100px">修改班费信息</a>
		</li>
		</ul>
		</div>
		<input id="checkButton" type="button" value="审 核 学 生 信 息" onclick="window.location='checkStuInfo1.jsp'">
	<%}%>
<%}
catch (Exception e)
{
	out.println(e.getMessage());
}
%>
</div>
</body>
</html>